package com.googlecode.lookie.perspectives;

import org.flexdock.perspective.LayoutSequence;

import org.flexdock.docking.DockingConstants;

import com.googlecode.lookie.explorer.ExplorerBundleConstants;
import com.googlecode.lookie.listview.ListViewBundleConstants;
import com.googlecode.lookie.platform.flexdock.PerspectiveContribution;
import com.googlecode.lookie.preview.PreviewBundleConstants;

public class ExplorerPerspective
    implements PerspectiveContribution
{

    public void configure( LayoutSequence sequence )
    {
        sequence.add( ListViewBundleConstants.LIST_VIEW );
        sequence.add( ExplorerBundleConstants.EXPLORER_VIEW, ListViewBundleConstants.LIST_VIEW, DockingConstants.WEST_REGION, 0.25f );
        sequence.add( PreviewBundleConstants.PREVIEW_VIEW, ListViewBundleConstants.LIST_VIEW, DockingConstants.EAST_REGION, 0.25f );
    }

    public String getId()
    {
        return "explorer";
    }

    public String getName()
    {
        return "Explorer";
    }

}
